package whf.framework.meta.entity;

import whf.framework.exception.PropertyException;

/**
 * 
 * @author wanghaifeng
 *
 */
public class ViewProperty extends AbstractProperty{
	public final static long serialVersionUID = 0;
	
	private View view;
	/**
	 * 引用实际对象的属性,如果属性存在除了id和sortOrder以外，其余全部以此属性值为准
	 */
	private ObjectProperty referencedProperty;
	
	public ViewProperty(){
		super();
	}
	
	public ViewProperty(ObjectProperty property) throws PropertyException{
		this();
		super.cloneProperties(property);
		this.setReferencedProperty(property);
		this.setId(0);
	}
	
	public ObjectProperty getReferencedProperty() {
		return referencedProperty;
	}

	public void setReferencedProperty(ObjectProperty referencedProperty) {
		this.referencedProperty = referencedProperty;
	}

	public View getView() {
		return view;
	}

	public void setView(View view) {
		this.view = view;
	}
}
